﻿using DynamicViewFormApp.Setting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DynamicViewFormApp.Component
{
    class ToolStripStatusService
    {
        /// <summary>
        /// 更新状态栏，页面信息
        /// </summary>
        /// <param name="toolStripStatusLabel"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        internal static void PageInfoToolStripLabel(ToolStripStatusLabel toolStripStatusLabel)
        {
            int pageSize = PageSetting.PageSize;
            string pageIndex = PageSetting.PageIndex;
            toolStripStatusLabel.Text = "页码：" + pageIndex + " | 页面：" + pageIndex + "/" + pageSize;
        }
    }
}
